<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>06_JS函数</title>
</head>
<body>
<script>
    function f1() {
        console.log("f1执行了")
    }
    f1();

    function f2(name) {
        console.log("f2执行了,参数是:"+name)
    }
    f2("张三");
    f2(100)
    f2(true)

    function f3(name,age) {
        console.log("f3执行了,参数是:"+name+","+age)
    }
    f3("张三",18);
    f3(18);
    f3("张三","18",24);

    (function () {
        console.log("匿名函数执行了")
    })();

    var f5 = function () {
        console.log("f5执行了")
    }
    f5();
    console.log(typeof f5);

    const f6 =  ()  => {
        console.log("f6执行了")
    }
    f6();








</script>

</body>
</html>